package com.ca.project.Server.Modules.UserWeb.PO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @PACKAGE_NAME: com.ca.project.Server.Modules.UserWeb.PO
 * @NAME: WebUserQuestionPO
 * @USER: ASUS
 * @DATE: 30/12/2024
 * @TIME: 下午9:31
 **/
@Data
@ApiModel(value = "用户注册成功后填写密保问题答案")
public class WebUserQuestionPO implements Serializable {

    private static final long serialVersionUID = -2114859858602834247L;

    @ApiModelProperty(value = "学号", required = true)
    @NotBlank(message = "学号不能为空")
    private String stu_num;

    @ApiModelProperty(value = "密码问题", required = true)
    @NotBlank(message = "密码问题不能为空")
    @Length(max = 100, message = "密码问题不能超过100个字符")
    private String question;

    @ApiModelProperty(value = "密保答案", required = true)
    @NotBlank(message = "密保答案不能为空")
    @Length(max = 100, message = "密保答案不能超过100个字符")
    private String answer;
}
